package ooExercise.ooday03;

public class Dog extends Animal implements Swim {
    Dog(String name, int age, String color) {
        super(name, age, color);
    }
    void lookHome() {
        System.out.println(color + "色的" + age + "岁的狗狗" + name + "正在看家...");
    }

    void eat() {
        System.out.println("一只名叫:" + name + "的狗狗," + color + "颜色的，今年" + age + "岁l,现在正在吃骨头...");
    }

    public void swim() {
        System.out.println("一只"+age+"岁的狗狗,它的名字叫"+name+",还是"+color+"颜色的，正在河边游泳...");
    }
}
